using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UI_Input_Tip : MonoBehaviour
{
    bool keep = false;
    string info = "";

    public Text text_info;

    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (keep)
        {
            text_info.text = info;
        }
        else
        {
            text_info.text = "";
        }
    }

    public void Start(string info)
    {
        this.info = info;
        keep = true;
    }

    public void Stop()
    {
        this.info = "";
        keep = false;
    }
}
